/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.brain.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 答案库Entity
 * @author 程展峰
 * @version 2021-09-18
 */
public class BAnswerBank extends DataEntity<BAnswerBank> {
	
	private static final long serialVersionUID = 1L;
	private String tenantId;		// tenant_id
	private String questionId;		// 问题ID
	private String answerContent;		// 答案内容
	private Integer answerSortQuestion;		// 基于当条问题的答案排序
	
	public BAnswerBank() {
		super();
	}

	public BAnswerBank(String id){
		super(id);
	}

	@Length(min=0, max=64, message="tenant_id长度必须介于 0 和 64 之间")
	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}
	
	@Length(min=0, max=64, message="问题ID长度必须介于 0 和 64 之间")
	public String getQuestionId() {
		return questionId;
	}

	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}
	
	@Length(min=0, max=255, message="答案内容长度必须介于 0 和 255 之间")
	public String getAnswerContent() {
		return answerContent;
	}

	public void setAnswerContent(String answerContent) {
		this.answerContent = answerContent;
	}
	
	public Integer getAnswerSortQuestion() {
		return answerSortQuestion;
	}

	public void setAnswerSortQuestion(Integer answerSortQuestion) {
		this.answerSortQuestion = answerSortQuestion;
	}
	
}